package com.akuhome.resource.DO.message;

import com.akuhome.resource.enums.MessageStatus;

import java.sql.Timestamp;
import java.util.Date;

public class MessageRecord {
    Integer id;
    //发送时间
    Date time;
    //短信类型
    MessageType type;
    //接受人
    String receiver;
    //短信内容
    String content;
    //发送状态
    MessageStatus status;
    //错误信息(可选)
    String error;
    Timestamp createTime;
    Timestamp updateTime;

    public MessageRecord() {
    }

    public MessageRecord(Date time, MessageType type, String receiver, String content) {
        this.time = time;
        this.type = type;
        this.receiver = receiver;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public MessageStatus getStatus() {
        return status;
    }

    public void setStatus(MessageStatus status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
}
